package com.markerhub.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 系统参数配置实体类
 */
@Data
@TableName("sys_config")
public class SysConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 配置键
     */
    @TableField(value = "config_key")
    private String configKey;

    /**
     * 配置值
     */
    @TableField(value = "config_value")
    private String configValue;

    /**
     * 配置描述
     */
    private String description;

    /**
     * 分组名称
     */
    @TableField(value = "group_name")
    private String groupName;

    /**
     * 创建时间
     */
    private Date created;

    /**
     * 更新时间
     */
    private Date updated;

    /**
     * 状态(0:禁用,1:启用)
     */
    private Integer status;

    // 为了向后兼容，添加getter和setter方法
    public String getConfig_key() {
        return configKey;
    }
    
    public void setConfig_key(String config_key) {
        this.configKey = config_key;
    }
    
    public String getConfig_value() {
        return configValue;
    }
    
    public void setConfig_value(String config_value) {
        this.configValue = config_value;
    }
    
    public String getGroup_name() {
        return groupName;
    }
    
    public void setGroup_name(String group_name) {
        this.groupName = group_name;
    }
}